﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using System.Configuration;

namespace ATA.Winforms
{
    public partial class frmChietkhauDacbiet : ATA.Winforms.frmChietkhau
    {
        public frmChietkhauDacbiet()
        {
            InitializeComponent();
        }

        public override void btnGenData_Click(object sender, EventArgs e)
        {
            ATA.Data.MisaDAL.DAL dal = new ATA.Data.MisaDAL.DAL(ConfigurationManager.ConnectionStrings["misaConnectionString"].ConnectionString, ConfigurationManager.ConnectionStrings["netTiersConnectionString"].ConnectionString);

            //hardcode: chiet khau 9%, chuyen khoan 1%
            //var monthYear = txtMonthYear.Text.Split('/');
            int month = 3;
            int year = 2010;
            int discount = 9;
            int transFee = 1;

            //grdResults.DataSource = dal.GetDoanhSoReport(month, year);
            grdResults.DataBind();
        }
    }
}
